import request from '/@/api/request'
/** 获取标签列表 */
export const requestTagList = (data: TagManageTypes.IRequest) => {
  return request.post<IPaginationResponse<TagManageTypes.IResponse[]>>('/business/datamarket/tag/tagPage', data)
}

/** 删除标签 */
export const requestDeleteTagByIds = (data: { idList: string[] }) => {
  return request.post<IPaginationResponse<string>>('/business/datamarket/tag/deleteTagByIds', data)
}

/** 保存/编辑标签 */
export const requestSaveTag = (data: TagManageTypes.IAddTag) => {
  return request.post<IPaginationResponse<string>>('/business/datamarket/tag/saveTag', data)
}
